package ModelLayer;
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

/**
 * Write a description of class Copy here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Copy
{
    // instance variables - replace the example below with your own
    private String serialNumber;
    private String purchaseDate;
    private String purchasePrice;
    private boolean isHome;
    
    public Copy(String serialNumber, String purchaseDate, String purchasePrice)
    {
        // initialise instance variables
        this.serialNumber = serialNumber;
        this.purchaseDate = purchaseDate;
        this.purchasePrice = purchasePrice;
        isHome = true;

    }
    
    public boolean getIsHome()
    {
        return isHome;
    }
    
    public void setIsHome(boolean isHome)
    {
        this.isHome = isHome;
    }
    
    public String getSerialNumber()
    {
        return serialNumber;
    }
    
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }
    
    public String getPurchaseDate()
    {
        return purchaseDate;
    }
    
    public void setPurchaseDate(String purchaseDate)
    {
        this.purchaseDate = purchaseDate;
    }
    
    public String getPurchasePrice()
    {
        return purchasePrice;
    }
    
    public void setPurchasePrice(String purchasePrice)
    {
        this.purchasePrice = purchasePrice;
    }
    
    public void printInfo()
    {
        System.out.println("Copy information");
        System.out.println("Serial number: " + getSerialNumber());
        System.out.println("Purchase date: " + getPurchaseDate());
        System.out.println("Purchase price: " + getPurchasePrice());
        System.out.println("");
    }
}